---
layout: "default"
root: "/v5.1"
description: "Swift documentation for '!=='"
keywords: ""
title: "!=="
---

<div class="intro-declaration"><code class="language-swift">func !==(lhs:rhs:)(lhs: AnyObject?, rhs: AnyObject?) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether two references point to
different object instances.
</p>
<p>This operator tests whether two instances have different identities, not
different values. For value inequality, see the not-equal-to operator
(<code>!=</code>) and the <code>Equatable</code> protocol.</p>
</div><div class="intro-declaration"><code class="language-swift">func !==(lhs:rhs:)(lhs: AnyObject?, rhs: AnyObject?) -> Bool</code></div><div class="discussion comment"><p>Returns a Boolean value indicating whether two references point to
different object instances.
</p>
<p>This operator tests whether two instances have different identities, not
different values. For value inequality, see the not-equal-to operator
(<code>!=</code>) and the <code>Equatable</code> protocol.</p>
</div>